//
//  WXNavigationDefaultImpl.m
//  HellowWeex
//
//  Created by 金宝泉 on 17/3/22.
//  Copyright © 2017年 x298017064010. All rights reserved.
//

#import "WXNavigatorDefaultImpl.h"
#import "CCWeexViewController.h"

@implementation WXNavigatorDefaultImpl

- (id)navigationControllerOfContainer:(UIViewController *)container {
    
    return container.navigationController;
}

- (void)pushViewControllerWithParam:(NSDictionary *)param completion:(WXNavigationResultBlock)block withContainer:(UIViewController *)container {
    CCWeexViewController *vc = [[CCWeexViewController alloc] init];
    vc.weexPath = param[@"url"];
    [container.navigationController pushViewController:vc animated:YES];
}

- (void)popViewControllerWithParam:(NSDictionary *)param completion:(WXNavigationResultBlock)block withContainer:(UIViewController *)container {
    
}

- (void)setNavigationItemWithParam:(NSDictionary *)param position:(WXNavigationItemPosition)position completion:(WXNavigationResultBlock)block withContainer:(UIViewController *)container {
    
}

- (void)setNavigationBackgroundColor:(UIColor *)backgroundColor withContainer:(UIViewController *)container {
    
}

- (void)setNavigationBarHidden:(BOOL)hidden animated:(BOOL)animated withContainer:(UIViewController *)container {
    
}

- (void)clearNavigationItemWithParam:(NSDictionary *)param position:(WXNavigationItemPosition)position completion:(WXNavigationResultBlock)block withContainer:(UIViewController *)container {
    
}

@end
